Doctrine proxy getter makes PHP app down with segmentation fault